﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="detailnews.ascx.cs" Inherits="control_client_detailnews" %>
<div class="blog">
    <div class="slide-vstech">
            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="500" height="200" id="Object6" align="middle" >
                <param name="movie" value="download/media/swf/desktop_vsc.swf" />
                <param name="quality" value="high" />
                <param name="allowFullScreen" value="true" />
                <param name="wmode" value="transparent" />
                <param name="allowScriptAccess" value="always" />
                <param name="_flashcreator" value="http://www.photo-flash-maker.com" />
                <param name="_flashhost" value="http://www.go2album.com" />
                <embed src="download/media/swf/desktop_vsc.swf" width="500" height="200" quality="high" allowFullScreen="true" wmode="transparent" allowScriptAccess="always" name="tech" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
            </object>
        </div><br />
  <div style="border:1px solid #E6E6E6">
  <div>   
    <asp:DataList ID="list" runat="server" style="margin-right: 575px" Width="100%" 
            DataKeyField="Id" ShowFooter="False" ShowHeader="False" DataSourceID="dsnews">
        <ItemTemplate>
           <table>
                <tr>
                    <td>
                    <h2>
                    <asp:Label ID="Label1" runat="server" CssClass="contentpagetitle" Text='<%# Eval("TieuDe") %>'></asp:Label> 
                    </h2>
                    </td>               
	            </tr>
                <tr>
                    <td>
		                Đăng bởi: <asp:Label ID="author" runat="server" Text='<%# Eval("TenDangNhap") %>' />
		                - Ngày đăng :<asp:Label ID="date" runat="server" Text='<%# Eval("NgayDang", "{0:dd/MM/yyyy}") %>' />
		             </td>
	            </tr>
	            <tr>
	            <td>
                <div class="introtext">
                    <img src='<%# "images/news/content/" + Eval("HinhAnh") %>' alt="" border="0" height="110" width="170">
                    <p>
                        <asp:Label ID="summary" runat="server" Text='<%# Eval("TomTat") %>'></asp:Label>
                        <br /><br />
                        <asp:Label ID="content" runat="server" Text='<%# Eval("NoiDung") %>'></asp:Label>
                    </p>
                </div>
                </td>
                </tr>
                <tr>
                <td>
                <div style="text-align:right; font-style:italic; font-weight:bold;">
                    Nguồn: <asp:Label ID="Label2" runat="server" Text='<%# Eval("NguonTin") %>'></asp:Label>            
                </div>
                </td>
                </tr>	     
	        </table>
        </ItemTemplate>
    </asp:DataList>
   </div>
   <br />
   <div>
    <div class="blog_more">		
            <h2>Tin tức cùng chuyên mục</h2>
            <ul>
                <asp:DataList ID="listrnews" runat="server" DataSourceID="dsrnews">
                    <ItemTemplate>
                        <li>
                            <asp:HyperLink ID="rNews" runat="server" 
                                NavigateUrl='<%# "~/DetailNews.aspx?key=" + Eval("Id") %>' 
                                Text='<%# Eval("TieuDe") + " (" + Eval("NgayDang", "{0:dd/MM/yyyy}") + ")" %>'></asp:HyperLink>
	                    </li>
                    </ItemTemplate>
                </asp:DataList>                                              
	        </ul>
    </div>
    </div>
</div>    
</div>
<asp:SqlDataSource ID="dsnews" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    SelectCommand="Proc_TinTuc_SelectPrimaryKey" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:QueryStringParameter Name="Id" QueryStringField="key" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="dsrnews" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    SelectCommand="Proc_TinTuc_SelectTop6" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:QueryStringParameter Name="Id" QueryStringField="key" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
